package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.ISdkRateDAO;
import org.jsbd.boss.domian.statistics.SDKRate;
import org.jsbd.boss.domian.statistics.UserClientInfoUseRatio;
import org.springframework.stereotype.Repository;

@Repository("sdkRateDao")
public class SdkRateDAOImpl extends CrackStatisticsBaseDao implements ISdkRateDAO {

	@Override
	public List<String> selectSdkRateXaxis(String startTime, String endTime) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("startTime", startTime);
		params.put("endTime", endTime);
		return super.queryForList("qy_sdk_rate.SELECT_SDK_RATE_XAXIS", params);
	}

	@Override
	public List<SDKRate> selectSdkRateYaxis(String startTime, String endTime) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("startTime", startTime);
		params.put("endTime", endTime);
		return super.queryForList("qy_sdk_rate.SELECT_SDK_RATE_YAXIS", params);
	}

}
